<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %> 
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<script src="<c:url value="/scripts/jquery-1.4.2.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>
<script src="<c:url value="/scripts/jquery-ui-1.8.custom.min.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>
<script src="<c:url value="/scripts/httpRequest.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>

<script src="<c:url value="/scripts/usercreate_Validation.js"/>" type="text/javascript" language="javascript" charset="utf-8"></script>

<form:form action="create" method="POST" modelAttribute="member" id="create" enctype="multipart/form-data">


	<form:errors path="*" cssClass="errors"/><br/>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="54"><img src="<c:url value="/images/sub/title09.gif"/>" width="84" height="21"></td>
        <td width="826">&nbsp;</td>
      </tr>
      <tr>
        <td class="td4a4d4a"></td>
        <td class="tde7e7e7"></td>
      </tr>
      <tr>
        <td colspan="2"><img src="<c:url value="/images/sub/member_text02.gif"/>" width="627" height="46"></td>
        </tr>
      <tr>
        <td colspan="2">&nbsp;</td>
      </tr>
      
    </table>	
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="21%">&nbsp;</td>
        <td colspan="2" width="77%" align="right" class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> 표시 필수 입력사항 </td>
      </tr>
      <tr>
        <td height="37" class="tdd6d7d6_top tdfffbff LP10 font12B_4f4f4f"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> <label for="realName">사용자 이름 </label> </td>
        <td class="line_d6d7d6_top line_e7e7e7 LP20 font12_4f4f4f">
        <form:input path="realName" name="textfield3" class="input" style="width:230px" id="realName"/>
		<form:errors path="realName" cssClass="errors"/>          
          <span class="font11_ff6d00">(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_d6d7d6_top line_e7e7e7 LP20 font12_4f4f4f"><div id="realNameDiv"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"> <span class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"></span><label for="juminNum1">주민등록번호 </label> </td>
        <td class="line_e7e7e7 LP20 font12_4f4f4f">  		
  		<form:input path="juminNum1" name="textfield3" class="input" style="width:150px" id="juminNum1"/>
		-<form:input path="juminNum2" name="textfield32" class="input" style="width:150px" id="juminNum2"/>
		<form:errors path="juminNum1" cssClass="errors"/>
		<form:errors path="juminNum2" cssClass="errors"/> 
		<span class="font11_ff6d00">(100,000콘트)</span> 
		</td>
		<td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="juminNum1Div"></div><div id="juminNum2Div"></div></td>
  
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><span class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"></span><label for="user.username">아이디 </label></td>
        <td class="line_e7e7e7 LP20" valign="middle">
        <form:input path="user.username" name="textfield3" class="input" style="width:230px" id="username"/>
		<form:errors path="user.username" cssClass="errors"/>
          <img src="<c:url value="/images/btn/btn_overlap.gif"/>" width="53" height="22" align="middle" id="idchk" style="cursor: pointer"> <span class="font11_ff6d00">(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="usermessage"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP20 font12B_4f4f4f"> <label for="nickName">닉네임 </label> </td>
        <td class="line_e7e7e7 LP20">
        <form:input path="nickName" name="textfield3" class="input" style="width:230px"/>
		<form:errors path="nickName" cssClass="errors"/>
            <span class="font11_ff6d00">(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><span class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"></span> <label for="user.password">비밀번호 </label> </td>
        <td class="line_e7e7e7 LP20">
        <form:password path="user.password" name="textfield3" class="input" style="width:230px" id="password"/>
		<form:errors path="user.password" cssClass="errors"/>
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="passwordDiv"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><span class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"></span> <label for="user.password">비밀번호 확인 </label> </td>
        <td class="line_e7e7e7 LP20">
        <form:password path="" name="textfield3" class="input" style="width:230px" id="passwordRe"/>		
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="passwordReDiv"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP20 font12B_4f4f4f"><label for="profilePhoto">사진 </label></td>
        <td class="line_e7e7e7 LP20">     		
		<input type="file" id="fileData" name="fileData" class="domainbox3_2" style="">
		<!-- 
		<input type="text" name="profilePhoto2" id="profilePhoto2" class="input" style="width:230px" readonly="readonly">
		<span class="font11_ff6d00">
			<img src="<c:url value="/images/btn/btn_find.gif"/>" width="64" height="22" align="absmiddle" onclick="butImg()" />
		</span>	 
		-->		        
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><span class="font11_636563"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"></span> <label for="emailAddress">이메일 </label> </td>
        <td class="line_e7e7e7 LP20 font12_4f4f4f">        
        <input type="text" id="email1" name="email1" class="input" style="width:150px"/>@<input type="text" id="email2" name="email2" class="input" style="width:150px"/>
		<form:hidden path="emailAddress" id="emailAddress"/>
		<form:errors path="emailAddress" cssClass="errors"/>    
        <span class="font11_ff6d00">(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="email1Div"></div><div id="email2Div"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP10 font12B_4f4f4f"><img src="<c:url value="/images/inc/ic_dot03.gif"/>" width="7" height="7" align="absmiddle"> <label for="phoneNumber">핸드폰 번호 </label> </td>
        <td class="line_e7e7e7 LP20 font12_4f4f4f">
        <select id="sell1" name="select2" style="width:80px">
			<option value="010" selected="selected">010</option>
			<option value="011">011</option>
			<option value="016">016</option>
			<option value="017">017</option>
			<option value="019">019</option>
		</select>-
		<input type="text" id="sell2" name="textfield3" class="input" style="width:80px"/>-
		<input type="text" id="sell3" name="textfield3" class="input" style="width:80px"/>-
		<form:hidden path="phoneNumber" id="phoneNumber"/>
		<form:errors path="phoneNumber" cssClass="errors" />   
          </span>&nbsp;<span class="font11_ff6d00"> (100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"><div id="sellDiv"></div></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP20 font12B_4f4f4f"><label for="address">주소 </label></td>
        <td class="line_e7e7e7 LP20" valign="middle">
        <form:input path="address.addressInfo"name="textfield3" class="input" style="width:330px"/><img src="<c:url value="/images/btn/btn_adress.gif"/>" width="53" height="22" align="middle">		
		<form:errors path="address.addressInfo" cssClass="errors"/>
            <span class="font11_ff6d00"> &nbsp;(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP20 font12B_4f4f4f"><label for="birthDate">생년월일 </label> </td>
        <td class="line_e7e7e7 LP20 font12_4f4f4f">          
        <form:select path="birthDate.year" style="width:80px">
			<option selected="selected">선택</option>
			<c:forEach begin="${1950 }" end="${2010}" var="year">
			<c:if test="${year == 1990 }"><option value="${year }" selected="selected">${year }</option></c:if>
			<c:if test="${year != 1990 }"><option value="${year }">${year }</option></c:if>
			</c:forEach>
		</form:select>년
		<form:input path="birthDate.month" name="textfield3" class="input" style="width:80px" value = "1"/>월
		<form:input path="birthDate.day" name="textfield3" class="input" style="width:80px" value = "1"/>일
		<spring:bind path="member.birthDate">
			<form:errors path="birthDate" cssClass="errors"/>
		</spring:bind>		
		            
          <span class="font11_ff6d00">&nbsp;(100,000콘트)</span> 
        </td>
        <td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"></td>
      </tr>
      <tr>
        <td height="37" class="tdfffbff LP20 font12B_4f4f4f"><label for="sexDistinction">성별 </label></td>
        <td class="line_e7e7e7 LP20 font12_4f4f4f">
	 		<form:radiobutton path="sexDistinction" value="M" label="남자" checked="checked"/> 
	        <form:radiobutton path="sexDistinction" value="F" label="여자"/>
			<form:errors path="sexDistinction" cssClass="errors"/>
 		&nbsp;<span class="font11_ff6d00">&nbsp;(100,000콘트)</span> 
 		</td>
 		<td width="21%" class="line_e7e7e7 LP20 font12_4f4f4f"></td>
      </tr>
	</table>
	<table width="192" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="89"><img src="<c:url value="/images/btn/btn_join.gif"/>" width="79px" height="25px" border="0" onclick="addData()" style="cursor: pointer;"/></td>
        <td width="103"><a href="<c:url value="../main/index"/>"><img src="<c:url value="/images/btn/btn_join_cancle.gif"/>" width="103" height="25" onClick="MM_showHideLayers('ment','','show')" style="cursor: pointer;"/></a></td>
      </tr>
    </table>
    <br/><br/><br/><br/>	
</form:form>

